﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "查看详情";
}
<div class="pageContent">
    <form method="post" action="BaseData/Process/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    工序代码：
                </label>
                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "itrue" })
                }
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    工序名称：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p style="width:100%;">
                <label>
                    备　　注：
                </label>
                <label>
                    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                </label>
                @*@Html.TextAreaFor(sysConfig => sysConfig.Value, new { style = "width:70%;height:50px;" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)*@
            </p>
            <p></p>
            <p></p>
            @Html.Partial("Operation", Model)
        </div>
        @*@Html.Partial("FormButtonBar")*@
    </form>
</div>
